-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix permissions on default state sub-directories when Agent runs as container #2330
Merged
ycombinator
merged 4 commits into
elastic:main
from
ycombinator:container-state-dirs-perms
Mar 1, 2023
Merged
Fix permissions on default state sub-directories when Agent runs as container #2330
ycombinator
merged 4 commits into
elastic:main
from
ycombinator:container-state-dirs-perms
Mar 1, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ycombinator
requested review from
AndersonQ and
michalpristas
and removed request for
a team
February 28, 2023 15:53
🌐 Coverage report
|
changelog/fragments/1677599609-fix-container-state-dirs-perms.yaml
Outdated
Show resolved
Hide resolved
michalpristas
approved these changes
Mar 1, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
components should not write any logs since 8.6, agent collects them and they are part of single log file, but i'm ok with the change
ycombinator
added a commit
that referenced
this pull request
Mar 1, 2023
…ontainer (#2330) (#2337) * Set temp dir permissions to 0770 * Set logs dir permissions to 0775 * Adding CHANGELOG entry * Fix kind of change in changelog entry (cherry picked from commit e1b4c21) Co-authored-by: Shaunak Kashyap <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR fixes the permissions of the
state/data/tmp
andstate/data/logs
folders when they're setup as part ofelastic-agent container
running.Why is it important?
To allow processes within the same group as
elastic-agent
, e.g. Heartbeat, to write to thestate/data/tmp
andstate/data/logs
folders.Note that there is another folder that's a sibling of those two,
state/data/run
but it already has the correct permissions, so this PR doesn't do anything with it.Checklist
./changelog/fragments
using the changelog toolAuthor's Checklist
How to test this PR locally
/usr/share/elastic-agent/state/data
. Verify that all of them are group-writeable.Related issues
Use cases
Screenshots
Before this PR
After this PR
Logs